<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddSettingAppHiddenTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('setting_app_hidden', function (Blueprint $table) {
            $table->string('week')->default('1,2,3,4,5,6,7')->comment('星期：1~7')->after('flag');
            $table->string('begin_time')->default('00:00')->comment('开始时间')->after('week');
            $table->string('end_time')->default('23:59')->comment('结束时间')->after('week');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('', function (Blueprint $table) {
            //
        });
    }
}
